// 登录
export interface loginForm {
  username: string
  password: string
}

//响应数据
export interface ResponseData {
  code: number
  message: string
  ok?: boolean
}

//登录响应数据
export interface loginResponseData extends ResponseData {
  data: string
}

//用户信息响应数据
export interface userInfoResponseData extends ResponseData {
  data: {
    routes: string[]
    buttons: string[]
    roles: string[]
    name: string
    avatar: string
    userId?: number
  }
}
//登录响应数据
export interface logoutResponseData extends ResponseData {
  data: null
}

//用户信息响应数据
export interface Result<T = any> {
  code: number
  data: T
  message: string
}
